package com.apps.config;

import com.apps.thirdparty.sms.config.SmsConfig;
import com.apps.thirdparty.upload.alioss.config.OssConfig;
import com.github.wxpay.sdk.WXPayConfig;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.ui.freemarker.FreeMarkerConfigurationFactoryBean;

/**
 * 站点全局配置
 */
@Data
@Configuration
@EnableAutoConfiguration
public class WebSiteConfig
{
    //微信登录配置参数
    @Value("${wechatconnectconfig.AppID}")
    private String Wx_Pc_AppID;
    @Value("${wechatconnectconfig.AppSecret}")
    private String Wx_Pc_AppSecret;
    @Value("${wechatconnectconfig.redirect_uri}")
    private String Wx_Pc_Redirect_Uri;
    /**
     * 初始化sms配置
     * @return
     */
    @Bean
    SmsConfig getSmsConfig()
    {
        return new SmsConfig();
    }

    /**
     * 初始化oss配置参数
     * @return
     */
    @Bean
    OssConfig getOssConfig(){return  new OssConfig();}


}
